import os
def flac_to_wav(flacName):
    wavName = flacName.replace('.flac', '.wav')
    
    print(flacName)
    print(wavName)
    cmd = 'ffmpeg -i ' + flacName + ' ' + wavName
    os.system(cmd)



g = os.walk('clustered')

for path, dir_list, file_list in g:
    for file_name in file_list:
        flac_to_wav(path+'/'+file_name)